import request from '@/utils/request'

// 查询销售订单记录列表
export function listRec(query) {
  return request({
    url: '/account/order/rec/list',
    method: 'get',
    params: query
  })
}
export function createList(query) {
  return request({
    url: '/account/order/rec/createList',
    method: 'get',
    params: query
  })
}

// 查询销售订单记录详细
export function getRec(id) {
  return request({
    url: '/account/order/rec/' + id,
    method: 'get'
  })
}

// 新增销售订单记录
export function addRec(data) {
  return request({
    url: '/account/order/rec',
    method: 'post',
    data: data
  })
}

// 修改销售订单记录
export function updateRec(data) {
  return request({
    url: '/account/order/rec',
    method: 'put',
    data: data
  })
}

// 删除销售订单记录
export function delRec(id) {
  return request({
    url: '/account/order/rec/' + id,
    method: 'delete'
  })
}

// 导出销售订单记录
export function exportRec(query) {
  return request({
    url: '/account/order/rec/export',
    method: 'get',
    params: query
  })
}